//
//  NaviBarLine.m
//  HappyStore
//
//  Created by 李小辉 on 16/8/29.
//  Copyright © 2016年 LLJ. All rights reserved.
//

#import "NaviBarLine.h"

@implementation NaviBarLine



//找出黑线,再做处理:
//通过一个方法来找到这个黑线(findHairlineImageViewUnder):
+ (UIImageView *)findHairlineImageViewUnder:(UIView *)view {
    if ([view isKindOfClass:UIImageView.class] && view.bounds.size.height <= 1.0) {
        return (UIImageView *)view;
    }
    for (UIView *subview in view.subviews) {
        UIImageView *imageView = [self findHairlineImageViewUnder:subview];
        if (imageView) {
            return imageView;
        }
    }
    return nil;
}


@end
